package com.zzyl.nursing.task;

import com.zzyl.nursing.service.IAlertRuleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("DeviceDataTask")
@Slf4j
public class DeviceDataTask {
    @Autowired
    private IAlertRuleService alertRuleService;
    public void handler() {
        log.info("设备数据定时任务开始执行");
        alertRuleService.alertFilter();
    }
}
